package com.unknowpupil.alibaba.cloud.configure.feign;

import com.unknowpupil.alibaba.cloud.configure.interceptor.FeignRequestInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname: FeignConfiguration
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/1/4 16:05
 * @Description:
 * @Version: 1.0
 */
@Configuration
public class FeignRequestConfiguration {
    /**
     * 功能描述: <br>
     * 〈注入自定义的拦截器〉
     *
     * @since: 1.0.0
     * @auther: w10g
     * @return:
     * @Date: 2020/1/4 16:06
     */
    @Bean
    public RequestInterceptor requestInterceptor(){
        return new FeignRequestInterceptor();
    }
}
